package org.the.gsdo.server;

// do not annotate this class with Component >> spring will try an autowiring
// but I am creating this class in the ProdConfiguration, DevConfiguration, ...
// with it's sole Constructor
public class PersistenceUnitNamer {

	private final String name;

	public PersistenceUnitNamer(String name) { this.name = name; }

	public String getUnitName() {
		return name;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(super.toString());
		sb.append(" [");
		sb.append(getUnitName());
		sb.append("]");
		return sb.toString();
	}

}
